﻿using System;

namespace FileTrackerWPF.Framework
{

    /*
    Extension method of Event Handlers
    */

    public static class ClassExtensions
    {
        public static void Raise<T>(this EventHandler<T> argHandler, object argSender, T argEvt) where T : EventArgs
        {
            if (argHandler != null) argHandler(argSender, argEvt);
        }

        public static void Raise(this EventHandler argHandler, object argSender, EventArgs argEvt)
        {
            if (argHandler != null) argHandler(argSender, argEvt);
        }

 }


}